<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>{:L('人物事迹')}</a></li>
		</ul>

		<form class="well form-search" method="post" action="{:U('PostsAdmin/index')}">
			用户ID：

			<input type="text" name="uid" style="width: 100px;" value="{:I('request.uid')}" placeholder="请输入用户ID">
			关键字：
			<input type="text" name="keyword" style="width: 200px;" value="{:I('request.keyword')}" placeholder="用户名/昵称/邮箱">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('PostsAdmin/index')}">清空</a>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr >
						<th align="center" style="text-align: center;">ID</th>
						<th width="135px" style="text-align: center;">标题</th>
						<th width="100px" style="text-align: center;">姓名</th>
						<th width="170px" style="text-align: center;">学校</th>
						<th width="240px" style="text-align: center;">发布时间</th>
						<th style="text-align: center;">点赞数</th>
						<th style="text-align: center;">点击数</th>
						<th align="center" style="text-align: center;">操作</th>
					</tr>
				</thead>
				<tbody>

					<foreach name="list" item="vo">
					<tr >
						<td align="center" style="text-align: center;">{$vo.id}</td>
						<td style="text-align: center;">{$vo.post_title}</td>
						<td style="text-align: center;">{$vo.post_name}</td>
						<td style="text-align: center;">{$vo.post_school}</td>
						<td style="text-align: center;">{$vo.post_date}</td>
						<td style="text-align: center;">{$vo.post_like}</td>
						<td style="text-align: center;">{$vo.post_hits}</td>
						<td style="text-align: center;">

							<a href="{:U('PostsAdmin/edit',array('id'=>$vo['id']))}" class="J_ajax_put" >编辑</a>
							<a href="{:U('PostsAdmin/delete',array('id'=>$vo['id']))}" class="J_ajax_del" id="Delete" onclick="if(confirm('确认删除?')==false) return false;">删除</a>

						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
